#ifndef SENSORDIALOG_H
#define SENSORDIALOG_H

#include <QDialog>
#include <QTcpSocket>
#include <QtNetwork>
#include "clockform.h"

namespace Ui {
    class SensorDialog;
}

class SensorDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SensorDialog(QWidget *parent = 0);
    ~SensorDialog();

    QTcpServer* tcpserver;
    QTcpSocket* pTcpSocketServer;
    clockform* f_clockform;

private slots:
    void on_pushButton_listen_clicked();
    void processConnection();
    void processText();

private:
    Ui::SensorDialog *ui;
};

#endif // SENSORDIALOG_H
